package cn.hyh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @auther :hyh
 * @desc :
 * @date :2020/1/10
 */
@Controller("/handler")
public class HandlerController implements HttpRequestHandler {
	@Override
	public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		 response.getWriter().write("这是实现HttpRequestHandler 方法 来实现controller 接口。。。");
	}
}
